package pojo;

import java.math.BigDecimal;
import java.math.BigInteger;

public class user {
    private Long user_id;
    private  String name;
    private  String student_id;
    private String password;
    private String photourl="https://pic1.imgdb.cn/item/63650a4116f2c2beb1e3a16a.png";
    /* 默认值*/
    private  double pk_basketball=100.0;
    private  double pk_tennis=100.0;
    private  double pk_football=100.0;
    private  double pk_pingpang=100.0;
    private double pk_badminton=100.0;
    private  double pk_volleyball=100.0;
    private double pk_baseball=100.0;
    private double shuttlecock=100.0;

    public user() {
    }

    public String getPassword() {
        return password;
    }

    public String getPhotourl() {
        return photourl;
    }

    public void setPhotourl(String photourl) {
        this.photourl = photourl;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public user(Long user_id, String name, String student_id, String password, double pk_basketball, double pk_tennis, double pk_football, double pk_pingpang, double pk_badminton, double pk_volleyball, double pk_baseball, double shuttlecock) {
        this.user_id = user_id;
        this.name = name;
        this.student_id = student_id;
        this.password = password;
        this.pk_basketball = pk_basketball;
        this.pk_tennis = pk_tennis;
        this.pk_football = pk_football;
        this.pk_pingpang = pk_pingpang;
        this.pk_badminton = pk_badminton;
        this.pk_volleyball = pk_volleyball;
        this.pk_baseball = pk_baseball;
        this.shuttlecock = shuttlecock;
    }

    public Long getUser_id() {
        return user_id;
    }

    public void setUser_id(Long user_id) {
        this.user_id = user_id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getStudent_id() {
        return student_id;
    }

    public void setStudent_id(String student_id) {
        this.student_id = student_id;
    }

    public double getPk_basketball() {
        return pk_basketball;
    }

    public void setPk_basketball(double pk_basketball) {
        this.pk_basketball = pk_basketball;
    }

    public double getPk_tennis() {
        return pk_tennis;
    }

    public void setPk_tennis(double pk_tennis) {
        this.pk_tennis = pk_tennis;
    }

    public double getPk_football() {
        return pk_football;
    }

    public void setPk_football(double pk_football) {
        this.pk_football = pk_football;
    }

    public double getPk_pingpang() {
        return pk_pingpang;
    }

    public void setPk_pingpang(double pk_pingpang) {
        this.pk_pingpang = pk_pingpang;
    }

    public double getPk_badminton() {
        return pk_badminton;
    }

    public void setPk_badminton(double pk_badminton) {
        this.pk_badminton = pk_badminton;
    }

    public double getPk_volleyball() {
        return pk_volleyball;
    }

    public void setPk_volleyball(double pk_volleyball) {
        this.pk_volleyball = pk_volleyball;
    }

    public double getPk_baseball() {
        return pk_baseball;
    }

    public void setPk_baseball(double pk_baseball) {
        this.pk_baseball = pk_baseball;
    }

    public double getShuttlecock() {
        return shuttlecock;
    }

    public void setShuttlecock(double shuttlecock) {
        this.shuttlecock = shuttlecock;
    }

    @Override
    public String toString() {
        return "user{" +
                "user_id=" + user_id +
                ", name='" + name + '\'' +
                ", student_id='" + student_id + '\'' +
                ", password='" + password + '\'' +
                ", photourl='" + photourl + '\'' +
                ", pk_basketball=" + pk_basketball +
                ", pk_tennis=" + pk_tennis +
                ", pk_football=" + pk_football +
                ", pk_pingpang=" + pk_pingpang +
                ", pk_badminton=" + pk_badminton +
                ", pk_volleyball=" + pk_volleyball +
                ", pk_baseball=" + pk_baseball +
                ", shuttlecock=" + shuttlecock +
                '}';
    }
    public double getPKBYCategory(int i){
        switch (i){
            case 1:
                return this.getPk_basketball();
            case 2:
                return this.getPk_tennis();
            case 3:
                return this.getPk_football();
            case 4:
                return this.getPk_pingpang();
            case 5:
                return this.getPk_badminton();
            case 6:
                return this.getPk_volleyball();
            case 7:
                return this.getPk_baseball();
            case 8:
                return this.getShuttlecock();
            default:
                return 0.0;

        }
    }
    public void setPKBYCategory(int i,double PK){
        switch (i){
            case 1:
                this.setPk_basketball(PK);
            case 2:
                this.setPk_tennis(PK);
            case 3:
                this.setPk_football(PK);
            case 4:
                this.setPk_pingpang(PK);
            case 5:
                this.setPk_badminton(PK);
            case 6:
                this.setPk_volleyball(PK);
            case 7:
                this.setPk_baseball(PK);
            case 8:
                this.setShuttlecock(PK);

        }


    }
}
